package com.zzty.txj.dao;

import com.zzty.txj.entity.Clazz;
import com.zzty.txj.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface ClazzMapper {
    @Select("select * from clazz")
    public List<Clazz> getClazz();

    @Select("select * from user where clazzId =#{id}")
    public List<User> getUsers(Clazz clazz);
}
